# Reproducing Figures from *Lessons Learned: Citizen Forecasting, Candidate Resignations, and the 2024 US Presidential Election*  

This folder contains scripts to reproduce the figures from *Lessons Learned: Citizen Forecasting, Candidate Resignations, and the 2024 US Presidential Election*.  

## Two Sets of Scripts  

There are **two versions** of each figure script:  

1. **"No Theme" scripts** (`_no_theme.R` suffix)  
   - These scripts generate the figures **without any additional styling**.  
   - They only require **dplyr, ggplot2, and tidyr**.

2. **"Styled" scripts** (without `_no_theme`)  
   - These scripts apply **custom formatting** (themes, scales, labels).  
   - In addition to the above packages, they also require:  
     - **usdata**  
     - **forcats**  
     - **lemon**  
     - **scales**  

## Required Packages  

For both sets of scripts, you need to install the necessary packages with:  

```r
install.packages(c("dplyr", "ggplot2", "tidyr")
```

And if you want to run the styled version of the figures, run:
```r
install.packages(c("usdata", "forcats", "lemon", "scales"))
```